package defpackage; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; import java.util.zip.ZipFile; /* renamed from: abao reason: default package */ public final class abao { private static final String TAG = null; private abao() { } public static vpn a(abac abac) { aazx azs = abac.ahL("http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties").azs(0); if (azs == null) { return null; } return azs.hds(); } public static String aio(String str) { if (str == null) { throw new IllegalArgumentException("zipItemName"); } int length = str.length(); if (length > 0 && str.charAt(0) == '/') { return str; } char[] cArr = new char[(length + 1)]; cArr[0] = '/'; str.getChars(0, length, cArr, 1); return new String(cArr); } public static String aip(String str) { if (str == null) { throw new IllegalArgumentException("opcItemName"); } while (str.charAt(0) == '/') { str = str.substring(1); } return str; } public static vpn aiq(String str) { if (str == null) { throw new IllegalArgumentException("opcItemName"); } while (str.charAt(0) == '/') { str = str.substring(1); } try { return new vpn(str); } catch (URISyntaxException e) { hm.e(TAG, "URISyntaxException: " + e); return null; } } public static ZipFile air(String str) { try { return new ZipFile(new File(str)); } catch (IOException e) { hm.e(TAG, "IOException: " + e); return null; } } public static vpn b(abac abac) { aazx azs = abac.ahL("http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties").azs(0); if (azs == null) { azs = abac.ahL("http://purl.oclc.org/ooxml/officeDocument/relationships/extendedProperties").azs(0); } if (azs == null) { return null; } return azs.hds(); } public static vpn c(abac abac) { aazx azs = abac.ahL("http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties").azs(0); if (azs == null) { azs = abac.ahL("http://purl.oclc.org/ooxml/officeDocument/customProperties").azs(0); } if (azs == null) { return null; } return azs.hds(); } }